<?
include('../controller/handler.php');

include('../module/var.inc.php');

session_start();

$hd = new Handler();
$base_url = $hd->getBaseURL();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it">
<head>
	<? include('../module/head.inc.php'); ?>
	<meta name="robots" content="noindex, nofollow"/>
	<script src="<?echo $base_url;?>js/editor.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>
<div id="content">
<?include('../module/header.inc.php');?>

<?if($hd->getPassword()==sha1($_SESSION['password'])) {?>

	<div class="article">
		<div class="upper_bar_main"><div class="upper_bar_round"></div></div>
		<div class="body_main_left">
		<div class="body_main_right">
		<div class="body_main">
			<h2>Banner promozionali</h2>
			<p>Per pubblicizzare il sito distribuisci il codice HTML riportato sotto i banner. Il codice
				riprodurrà l'immagine alla quale si riferisce nella stessa maniera in cui è visualizzata in questa pagina.</p>
			<div>
			<img src="<?echo $base_url?>style/img/banner.jpg" alt="Philomousia.it" /><br />
			Codice: <input onclick="this.select()" type="text" class="text" value="<?echo htmlspecialchars("<a href=\"http://".$_SERVER['HTTP_HOST']."\"><img src=\"http://".$_SERVER['HTTP_HOST'].$base_url."style/img/banner.jpg\" alt=\"Philomousia.it\" /></a>")?>" />
			</div>
			<hr />
			<div>
			<img src="<?echo $base_url?>style/img/banner_small.jpg" alt="Philomousia.it" /><br />
			Codice: <input onclick="this.select()" type="text" class="text" value="<?echo htmlspecialchars("<a href=\"http://".$_SERVER['HTTP_HOST']."\"><img src=\"http://".$_SERVER['HTTP_HOST'].$base_url."style/img/banner_small.jpg\" alt=\"Philomousia.it\" /></a>")?>" />
			</div>
			<p class="small admin_action">
				<a href="<?echo $base_url;?>panel">&larr; Pannello di amministrazione</a>
			</p>
		</div></div></div>
		<div class="lower_bar_main"><div class="lower_bar_round"></div></div>
	</div>

<?}?>

<? include('../module/footer.inc.php'); ?>
</div>
</body>
</html>
